package com.addplus.townmall.server.api.model.town.param;

import com.addplus.townmall.server.api.model.town.*;
import com.addplus.townmall.server.api.model.town.expand.CouponMemberRecordExpand;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 类名: OrderFightParam
 *
 * @author zhangjiehang
 * @version V1.0
 * @date 2018/11/11 3:50 PM
 * @description 类描述: 订单子项实体参数类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class OrderItemsFightParam extends OrderItemsFight implements Serializable {

    private static final long serialVersionUID = 1770530270505479392L;

    /**
     * 优惠价格
     */
    private BigDecimal discountPrice;

    /**
     * 商品编号
     */
    private String shopCustomizeCode;

    /**
     * 是否库存不足(0:否 1:是 2:已售罄)
     */
    private Integer lackSotck;

    /**
     * 是否参数会员优惠
     */
    private Integer isDiscount;
    /**
     * 商品邮递方式(0:包邮 1:统一邮费 2:模板)
     */
    @TableField("fright_type")
    private Integer frightType;

    /**
     * 邮费
     */
    private BigDecimal fright;
    /**
     * 商品运费模板主键id
     */
    @TableField("shop_fright_id")
    private Integer shopFrightId;
    /**
     * 库存
     */
    private Integer stock;

    /**
     * 是否允许单独购买
     */
    private Integer isOnly;

    /**
     * 是否允许多件购买
     */
    private Integer isMore;

    /**
     * 团长优惠
     */
    private BigDecimal colonel;

    /**
     * 成团数
     */
    private Integer groupNum;

    /**
     * 限购数量
     */
    private Integer buyLimit;

    /**
     * 单次限购数量
     */
    private Integer oneBuyLimit;

    /**
     * 上架状态(0:下架 1:上架)
     */
    private Integer onlineStatus;

    /**
     * 拼团时间/小时
     */
    private Integer groupTime;


}
